package com.audaque.springboot.foshanupload.web.esdatademo.model.pojo;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;

/**
 * @author zhongguobin
 * @date 2024-04-03 11:44
 * @description TODO
 */
/**
 * Elasticsearch实体类（用户）
 */
@Document(indexName = "user",type = "userdto")
@Data
public class UserDto {
    @Id
    private String username;
    @Field(type = FieldType.Text)
    private String password;

}